package net.roobook.common.selector;

import net.roobook.common.configure.RoobookAuthExceptionConfigure;
import net.roobook.common.configure.RoobookOAuth2FeignConfigure;
import net.roobook.common.configure.RoobookServerProtectConfigure;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author Roobook
 * @description desc
 * @date 2022/4/8
 */
public class RoobookCloudApplicationSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{
                RoobookAuthExceptionConfigure.class.getName(),
                RoobookOAuth2FeignConfigure.class.getName(),
                RoobookServerProtectConfigure.class.getName()
        };
    }
}